<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');

/*
 * -----------------------------------------------------------------------
 *  AVAILABLE OPTIONS TO PLOT GRAPHICS
 * -----------------------------------------------------------------------
 * 
 * These modes are used when user populates plot_layout form to get graphics
 */

define('REPORTE_MULTIPLE',1);
define('REPORTE_POR_DIA',2);
define('REPORTE_POR_HORA',3);

/*
 * -----------------------------------------------------------------------
 *  NOMBRES VARIABLES COLUMNA EN LA BASE DE DATOS
 * -----------------------------------------------------------------------
 * 
 * Estas constantes representan los nombres asignados para las variables definidas como
 * columnas dentro de la tabla tkm_log, 
 */

define('TEMPERATURA_1','Temperature_1');
define('HUMEDAD_1','Humidity_1');
define('TEMPERATURA_2','Temperature_2');
define('HUMEDAD_2','Humidity_2');
define('TEMPERATURA_3','Temperature_3');
define('HUMEDAD_3','Humidity_3');
define('TEMPERATURA_4','Temperature_4');
define('HUMEDAD_4','Humidity_4');

define('TEMP_PLANTA1','PSTemperature_1');
define('TEMP_PLANTA2','PSTemperature_2');

define('VOLTAJE_1','Voltage_1');
define('CURRENT_1','Current_1');

define('VOLTAJE_2','Voltage_2');
define('CURRENT_2','Current_2');

define('VOLTAJE_3','Voltage_3');
define('CURRENT_3','Current_3');

define('VOLTAJE_4','Voltage_4');
define('CURRENT_4','Current_4');

define('VOLTAJE_5','Voltage_5');
define('CURRENT_5','Current_5');

define('VOLTAJE_6','Voltage_6');
define('CURRENT_6','Current_6');

define('VOLTAJE_7','Voltage_7');

define('VOLTAJE_8','Voltage_8');

define('DIESEL_1','Diesel_1');
define('DIESEL_2','Diesel_2');

define('DIGITAL_INPUT_1','DigitalInput_1');
define('DIGITAL_INPUT_2','DigitalInput_2');
define('DIGITAL_INPUT_3','DigitalInput_3');
define('DIGITAL_INPUT_4','DigitalInput_4');
define('DIGITAL_INPUT_5','DigitalInput_5');
define('DIGITAL_INPUT_6','DigitalInput_6');
define('DIGITAL_INPUT_7','DigitalInput_7');
define('DIGITAL_INPUT_8','DigitalInput_8');
define('DIGITAL_INPUT_9','DigitalInput_9');
define('DIGITAL_INPUT_10','DigitalInput_10');
define('DIGITAL_INPUT_11','DigitalInput_11');
define('DIGITAL_INPUT_12','DigitalInput_12');
define('DIGITAL_INPUT_13','DigitalInput_13');
define('DIGITAL_INPUT_14','DigitalInput_14');
define('DIGITAL_INPUT_15','DigitalInput_15');
define('DIGITAL_INPUT_16','DigitalInput_16');
define('DIGITAL_INPUT_17','DigitalInput_17');
define('DIGITAL_INPUT_18','DigitalInput_18');
define('DIGITAL_INPUT_19','DigitalInput_19');
define('DIGITAL_INPUT_20','DigitalInput_20');
define('DIGITAL_INPUT_21','DigitalInput_21');
define('DIGITAL_INPUT_22','DigitalInput_22');
define('DIGITAL_INPUT_23','DigitalInput_23');
define('DIGITAL_INPUT_24','DigitalInput_24');

define('DIGITAL_OUTPUT_1','DigitalOutput_1');
define('DIGITAL_OUTPUT_2','DigitalOutput_2');
define('DIGITAL_OUTPUT_3','DigitalOutput_3');
define('DIGITAL_OUTPUT_4','DigitalOutput_4');
define('DIGITAL_OUTPUT_5','DigitalOutput_5');
define('DIGITAL_OUTPUT_6','DigitalOutput_6');
define('DIGITAL_OUTPUT_7','DigitalOutput_7');
define('DIGITAL_OUTPUT_8','DigitalOutput_8');
define('DIGITAL_OUTPUT_9','DigitalOutput_9');
define('DIGITAL_OUTPUT_10','DigitalOutput_10');
define('DIGITAL_OUTPUT_11','DigitalOutput_11');
define('DIGITAL_OUTPUT_12','DigitalOutput_12');
define('DIGITAL_OUTPUT_13','DigitalOutput_13');
define('DIGITAL_OUTPUT_14','DigitalOutput_14');
define('DIGITAL_OUTPUT_15','DigitalOutput_15');
define('DIGITAL_OUTPUT_16','DigitalOutput_16');
/*
 * ----------------------------------------------------------------------
 * 	NOMBRES DE LAS TABLAS Y CAMPOS DE LA Base de datos login
 * ----------------------------------------------------------------------
 */
define('LOGIN_DATABASE_NAME', 'login');
define('LOGIN_TABLE','tkm_login');
define('LOGIN_TABLE_ID','id');
define('LOGIN_TABLE_USERNAME','username');
define('LOGIN_TABLE_PASSWORD','password');
define('LOGIN_TABLE_DB','dbid');
define('TKM_DB_TABLE','tkm_db');


/* End of file constants.php */
/* Location: ./application/config/constants.php */